package de.tudarmstadt.ukp.muip.fibqdojo.japanese.visitor;

import com.google.common.base.Optional;

import de.tudarmstadt.ukp.muip.fibqdojo.japanese.JapaneseToken;

public class GetKeiPiecesVisitor extends AbstractGetPiecesVisitor {

    @Override
    public void visit(JapaneseToken token) {
        String[] tokPieces = token.getKei();
        if (tokPieces.length > 0 && !tokPieces[0].equals("")) {
            pieces = Optional.of(tokPieces);
        }
    }

}
